package blog.sys.serviceimpl;

import blog.sys.dao.SysFileDao;
import blog.sys.entity.SysFile;
import blog.sys.service.SysFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;

/**
 * Created by zzl on 2015/11/6.
 */
@Service
@Transactional(readOnly = true)
public class SysFileServiceImpl implements SysFileService {

    @Override
    public SysFile get(Integer id) {
        return sysFileDao.get(id);
    }

    @Override
    public Serializable saveEntity(SysFile sysFile) {
       return sysFileDao.save(sysFile);
    }

    @Autowired
    private SysFileDao sysFileDao;

}
